package com.yanqu.road.entity.activity.feast.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_activity_feast_behavior_data")
public class FeastUserBehaviorData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "地图id", update = true)
    private int missionId;

    @FieldTypeAnnotation(desc = "行为类型", update = true)
    private int behaviorType;

    @FieldTypeAnnotation(desc = "行为参数", update = true)
    private int behaviorParam;

    @FieldTypeAnnotation(desc = "数量", update = true)
    private int count;

    public FeastUserBehaviorData() {

    }

    public FeastUserBehaviorData(int activityId, long userId, int missionId, int behaviorType, int behaviorParam, int count) {
        this.activityId = activityId;
        this.userId = userId;
        this.missionId = missionId;
        this.behaviorType = behaviorType;
        this.behaviorParam = behaviorParam;
        this.count = count;
    }

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getMissionId() {
        return missionId;
    }
    public void setMissionId(int missionId) {
        if (this.missionId != missionId) {
            this.missionId = missionId;
            setOp(DataStatus.Update);
        }
    }

    public int getBehaviorType() {
        return behaviorType;
    }
    public void setBehaviorType(int behaviorType) {
        if (this.behaviorType != behaviorType) {
            this.behaviorType = behaviorType;
            setOp(DataStatus.Update);
        }
    }

    public int getBehaviorParam() {
        return behaviorParam;
    }
    public void setBehaviorParam(int behaviorParam) {
        if (this.behaviorParam != behaviorParam) {
            this.behaviorParam = behaviorParam;
            setOp(DataStatus.Update);
        }
    }

    public int getCount() {
        return count;
    }
    public void setCount(int count) {
        if (this.count != count) {
            this.count = count;
            setOp(DataStatus.Update);
        }
    }
}
